package com.code.user.model.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 推荐人业务对象
 *
 * @author tangyifei
 * @since 2020年1月2日13:45:21
 */
@ApiModel("推荐人业务对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserRecommenderBO implements Serializable {

    private static final long serialVersionUID = 8609487709343408932L;

    @ApiModelProperty(value = "序号", example = "1")
    private Integer num;

    @ApiModelProperty(value = "主键", example = "1")
    private String id;

    @ApiModelProperty(value = "推荐人的手机号", example = "1")
    private String recommenderPhone;

    @ApiModelProperty(value = "被推荐人的用户主键", example = "1")
    private String recommenderUserId;

    @ApiModelProperty(value = "被推荐人的用户手机号", example = "150****0055")
    private String recommenderUserPhone;

    @ApiModelProperty(value = "推荐成功状态（0推荐失败 1推荐成功（被推荐人完成注册并入金成功，即算推荐成功））", example = "0")
    private Integer recommendState;

    @ApiModelProperty(value = "入金状态 0未入金 不为0已入金", example = "0")
    private Integer entryMoneyState;

    @ApiModelProperty(value = "创建时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    @ApiModelProperty(value = "投资时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date investTime;
}
